/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package favorito;

import java.util.HashSet;
import java.util.Set;
import musica.Musica;

/**
 *
 * @author Guilherme
 */
public class Favorito {

    private Set musicas;

    public Favorito(HashSet<Musica> musicas) {
        this.musicas = musicas;
    }

    public void adicionarMusica(Musica mus) {
        this.musicas.add(mus);
    }

    public void removerMusica(Musica mus) {
        this.musicas.remove(mus);
    }

    public boolean consultarMusica(Musica mus) {
        return musicas.contains(mus);
    }

    public int consultarOpcoes(Musica mus) {
        if (consultarMusica(mus)) {
            return 1;
        } else {
            return 2;
        }
    }
}
